/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 车辆状态及责任经销商修改 列表查询
export const searchVinList = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/searchVinList`, params);
/*保存*/
export const editResDealer = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/editResDealer`, params);

//经销商列表查询
export const byAllInfo = params => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/message/dealerAttach/dealerInfo/byAllInfo`);



//列表导出
export const exportSearchVinList = params =>
{
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportSearchVinList`,
    method: 'get',
    params:params,
    responseType: 'blob'
  });
};
  //下载中心导出
  export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);